package com.hawthorn.admin.feign;

import com.hawthorn.platform.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignFallback;
import org.springframework.cloud.openfeign.HystrixFallbackFactory;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @version v1.0.1
 * @Copyright: Copyright (c) $
 * @remark: TODO 保存门店信息Feign接口
 * @author:zhangzhexu
 * @date:2023/3/21$ 15:46$
 */
//@FeignClient(name = "sentury-cms-u", url = "http://127.0.0.1:5703/", configuration = FeignConfig.class, fallbackFactory = HystrixFallbackFactory.class)
@FeignClient(name = "sentury-cms", configuration = FeignConfig.class, fallbackFactory = HystrixFallbackFactory.class, contextId = "FileFeignService")
public interface CloudStoreFeignService extends FeignFallback
{
  @PostMapping(value = "/showUserStore/saveCloudStore")
  Map<String, Object> saveCloudStore(Map<String, Object> param);

  @PostMapping(value = "/showUserStore/findStoreStatus")
  Map<String, Object> findStoreStatus(Map<String, Object> param);

  @PostMapping(value = "/showUserStore/delStore")
  Map<String, Object> delStore(Map<String, Object> param);
}
